package com.sunny.spring_boot_test.domain.dao;

import com.sunny.spring_boot_test.domain.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User, Long> {
    User findByUserName(String userName);

    User findByUserNameOrEmail(String username, String email);

    User findById(long id);

    void deleteById(Long id);
}
